package org.jeecg.modules.platform.facade.impl;



import org.springframework.stereotype.Service;


import org.jeecg.base.facade.impl.IFacadeImpl;
import org.jeecg.modules.platform.entity.SystemParam;
import org.jeecg.modules.platform.facade.ISystemParamFacade;
import org.jeecg.modules.platform.service.ISystemParamService;
import org.jeecg.modules.platform.vo.SystemParamVo;
import org.springframework.beans.BeanUtils;

import org.springframework.beans.factory.annotation.Autowired;


/**
 * @Description: 系统参数
 * @Author: zj
 * @Date:   2020-05-26
 * @Version: V1.0
 */


@Service
public class SystemParamFacadeImpl extends IFacadeImpl<SystemParamVo, SystemParam, ISystemParamService>  implements ISystemParamFacade<SystemParamVo, SystemParam> {
        @Autowired
        private ISystemParamService systemParamService;


         @Override
         public SystemParam po2Vo(SystemParamVo vo) {
                SystemParam po = new SystemParam();
                if(vo==null){
                   return null;
                }
                BeanUtils.copyProperties(vo, po);
                return po;
         }

         @Override
         public SystemParamVo vo2Po(SystemParam po) {
                SystemParamVo vo = new SystemParamVo();
                 if(po==null){
                     return null;
                  }
                BeanUtils.copyProperties(po, vo);
                return vo;
         }

}
